﻿using Sipek.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Media;
using System.Text;

namespace WinformTest.Sip
{
    public class CMediaPlayerProxy : IMediaProxyInterface
    {

        SoundPlayer player = new SoundPlayer();

        public int playTone(ETones toneId)
        {
            string fname;

            switch (toneId)
            {
                case ETones.EToneDial:
                    break;
                case ETones.EToneCongestion:
                    break;
                case ETones.EToneRingback:
                    break;
                case ETones.EToneRing:
                    break;
                default:
                    fname = "";
                    break;
            }
            //player.SoundLocation = fname;
            //player.Load();
            //player.PlayLooping();
            return 1;
        }
        
        public int stopTone()
        {
            player.Stop();
            return 1;
        }
    }
}
